#ifndef BASEBUTTON_H
#define BASEBUTTON_H

#include "BaseItem.h"

class BaseButton : public BaseItem
{
	Q_OBJECT

	QPixmap* _normalImage;
	QPixmap* _pressedImage;

public:
	BaseButton(QWidget *parent = 0);

	void setImage(QPixmap* normal, QPixmap* pressed = NULL);

protected:
	void paintEvent(QPaintEvent *event);
	void mousePressEvent(QMouseEvent*event);
	void mouseReleaseEvent(QMouseEvent*event);

signals:
	void clicked();
};

#endif // BASEBUTTON_H
